import axiosHelper from "./axiosHelper";

//会议室信息路由
const readMeetRoom_BASE_URL = "api/v1/Meeting/";
const writeMeetRoom_BASE_URL = "api/v1/MeetRoom/";

/**
 * 会议室信息
 * @param data 会议室信息
 */
export const GetMeetRoom = (data: any) => {
  return axiosHelper.read({
    url: `${readMeetRoom_BASE_URL}GetMeetRoom`,
    method: "post",
    data: data,
  });
};
/**
 * 新增会议室信息
 * @param data 会议室信息
 */
export const AddMeetRoom = (data: any) => {
  return axiosHelper.write({
    url: `${writeMeetRoom_BASE_URL}AddMeetRoom`,
    method: "post",
    data: data,
  });
}
/**
 * 更新会议室信息
 * @param data 会议室信息
 */

export const UpdateMeetRoom = (data: any) => {
  return axiosHelper.write({
    url: `${writeMeetRoom_BASE_URL}UpdMeetRoom`,
    method: "put",
    data: data,
  })
}
/**
 * 删除会议室信息 
 * @param data 会议室信息
 *  
 */
export const DeleteMeetRoom = (data: any) => {
  return axiosHelper.write({
    url: `${writeMeetRoom_BASE_URL}DelMeetRoom`,
    method: "delete",
    data: data,
  })
}
/**
 * 批量删除会议室信息 
 * @param data 会议室信息
 *  
 */
export const DeleteMeetRoomRange = (data: any) => {
  return axiosHelper.write({
    url: `${writeMeetRoom_BASE_URL}DelRoomRange`,
    method: "delete",
    data: data,
  })
}
